/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class CoordenadaCriteria extends AbstractORMCriteria {
	public final IntegerExpression id_coordenada;
	public final StringExpression clave;
	public final IntegerExpression valor;
	
	public CoordenadaCriteria(Criteria criteria) {
		super(criteria);
		id_coordenada = new IntegerExpression("id_coordenada", this);
		clave = new StringExpression("clave", this);
		valor = new IntegerExpression("valor", this);
	}
	
	public CoordenadaCriteria(PersistentSession session) {
		this(session.createCriteria(Coordenada.class));
	}
	
	public CoordenadaCriteria() throws PersistentException {
		this(orm.CoordenadaPersistentManager.instance().getSession());
	}
	
	public TarjetaCriteria createTarjetaid_tarjetaCriteria() {
		return new TarjetaCriteria(createCriteria("tarjetaid_tarjeta"));
	}
	
	public Coordenada uniqueCoordenada() {
		return (Coordenada) super.uniqueResult();
	}
	
	public Coordenada[] listCoordenada() {
		java.util.List list = super.list();
		return (Coordenada[]) list.toArray(new Coordenada[list.size()]);
	}
}

